<?php


namespace App\Utils\Lib\RankLib;

use App\Models\lak\Reservation;
use App\Utils\Lib\Redis;
class WeeklyList implements MakeRankInterface
{
    public  function MakeRankInterface(){
        $redis = Redis::createRedisObject();
        $redis->select(11);
        $data =  $redis->zRevRange('week',0,-1);
        $param=[];
        $arr=[];
        foreach ($data as $key => $value){
            $param['name'] =$key;
            $param['num'] = $value;
            $arr[]=$param;
        }
        return $arr;
    }

}
